package com.huangjun.hdfs.controller;


import com.huangjun.hdfs.HadoopTest;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

    @RequestMapping("/hello")
    public String hello(){
        HadoopTest hadoopTest = new HadoopTest();
        try {
            hadoopTest.before();
        } catch (Exception e) {
            e.printStackTrace();
        }
        hadoopTest.mkdir();
//        hadoopTest.uploadFile();
//        hadoopTest.downFile();
        return "你好";
    }
}
